<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jquery.mini.js"></script>
</head>
<body>
    <div class="nav"></div>
    <div></div>
    <script>
        // jQuery选择器和css一样
        $(function() {
            $('.nav')
            // jquery设置样式,两个都会设置，隐式迭代操作，进行内部遍历
            $('div').css("background", "pink");
        })
    </script>
</body>
</html>